gtk_widget_set_mapped (widget, TRUE);
child = gtk_bin_get_child (bin);
- if (gtk_widget_get_visible (child) &&
+ if (child != NULL &&
+ gtk_widget_get_visible (child) &&
!gtk_widget_get_mapped (child))
gtk_widget_map (child);
widget->allocation.height);
- if (gtk_widget_get_visible (child))
+ if (child != NULL && gtk_widget_get_visible (child))
{
GtkAllocation child_allocation;
guint border_width;
GtkHandleBox *hb = GTK_HANDLE_BOX (widget);
GtkHandleBoxPriv *priv = hb->priv;
GtkBin *bin = GTK_BIN (widget);
+ GtkWidget *child;
gint width, height;
GdkRectangle rect;
GdkRectangle dest;
event ? &event->area : area,
handle_orientation);
- if (gtk_widget_get_visible (gtk_bin_get_child (bin)))
+ child = gtk_bin_get_child (bin);
+ if (child != NULL && gtk_widget_get_visible (child))
GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->expose_event (widget, event);
}
requisition->height += 2 * horizontal_padding;
child = gtk_bin_get_child (bin);
- if (gtk_widget_get_visible (child))
+
+ if (child != NULL && gtk_widget_get_visible (child))
{
GtkRequisition child_requisition;
requisition->height = border_width * 2;
child = gtk_bin_get_child (bin);
- if (gtk_widget_get_visible (child))
+
+ if (child != NULL && gtk_widget_get_visible (child))
{
GtkRequisition child_req;
allocation->height);
child = gtk_bin_get_child (bin);
- if (gtk_widget_get_visible (child))
+
+ if (child != NULL && gtk_widget_get_visible (child))
{
GtkAllocation child_alloc;
gtk_widget_set_mapped (widget, TRUE);
child = gtk_bin_get_child (bin);
- if (gtk_widget_get_visible (child) &&
+ if (child != NULL &&
+ gtk_widget_get_visible (child) &&
!gtk_widget_get_mapped (child))
gtk_widget_map (child);
allocation->width, allocation->height);
child = gtk_bin_get_child (bin);
- if (gtk_widget_get_visible (child))
+
+ if (child != NULL && gtk_widget_get_visible (child))
{
GtkAllocation child_allocation;